package org.itboys.shop.entity;

import lombok.Getter;
import lombok.Setter;
import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.itboys.seller.constant.SellerConstants;
import org.itboys.seller.entity.Seller;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

import java.util.List;

/**
 * Created by lc on 2016/6/4.
 */
@Getter
@Setter
@Entity(value = "TouristSpot", noClassnameStored = true)
public class TouristSpot extends BaseLongIdEntity {

    @Indexed
    private long scenicId; //景区

    private String name; //景点

    private String openTime;  //开放时间

    private String closeTime; //关闭时间

    private long touristType; //景区类型

    private double commission; //佣金比例

    private String typeName;//景区类型中文

    private String[] coordinate;//经纬度坐标  数组长度为2   第一个值代表经度  第二个值代表纬度

    private List<Long> tagList; //景区标签

    private String address;//商家地址

    private String linkName;//联系人
    private String linkPhone;//联系电话

    private String logo;//logo

    private String mainImg;//主图

    private String desc;//描述

    private Integer state = SellerConstants.TYPE_ZERO;//状态  0：录入  1：成功开通  2：冻结  -1：商家退出

    public long getScenicId() {
        return scenicId;
    }

    public void setScenicId(long scenicId) {
        this.scenicId = scenicId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOpenTime() {
        return openTime;
    }

    public void setOpenTime(String openTime) {
        this.openTime = openTime;
    }

    public String getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(String closeTime) {
        this.closeTime = closeTime;
    }

    public long getTouristType() {
        return touristType;
    }

    public void setTouristType(long touristType) {
        this.touristType = touristType;
    }

    public double getCommission() {
        return commission;
    }

    public void setCommission(double commission) {
        this.commission = commission;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public List<Long> getTagList() {
        return tagList;
    }

    public void setTagList(List<Long> tagList) {
        this.tagList = tagList;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getMainImg() {
        return mainImg;
    }

    public void setMainImg(String mainImg) {
        this.mainImg = mainImg;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String[] getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String[] coordinate) {
        this.coordinate = coordinate;
    }
}

